package homework.day08.bean;

/**
 * @author ThinkBook
 */
public class Dog extends Animal {
    private int age;
    public Dog(String name,int age){
        super(name);
        this.age = age;
    }
    @Override
    public void makeSound(){
        System.out.println("狗发出汪汪叫声");
    }
    @Override
    public void move(){
        System.out.println("狗在四腿奔跑");
    }
}
